reduce echelon form of matrix